package org.jfteam.common.response;

/**
 * Created with IntelliJ IDEA.
 * Description: 描述
 * Author:      fengwenping
 * Date:        2021/3/28 16:52
 */
public enum ResponseState {
    SUCCESS("10001", "请求成功"),
    CHECK_ERROR("10002", "参数验证失败"),
    TIMEOUT("10003", "登录超时"),
    ERROR("10004", "系统未知错误"),
    NOT_LOGIN("10005", "用户未登录"),
    AUTH_CHECK_ERROR("10006", "权限认证失败"),
    LOGIN_SUCCESS("10007", "用户已登录"),
    CUSTOM_ERROR("10008", "用户自定义错误"),
    TOKEN_EXPIRED("10009", "权限过期"),
    FALLBACK("40004", "服务限流降级");
    private final String code;
    private final String msg;

    ResponseState(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
